﻿using System;

namespace Vbyte.DataSource.Cache
{
    /// <summary>
    /// 缓存策略配置
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
    public class CachePolicyAttribute : Attribute
    {
        /// <summary>
        /// 配置缓存策略的实现类型
        /// </summary>
        /// <param name="cacheImpType">缓存测试的实现类型</param>
        public CachePolicyAttribute(Type cacheImpType)
        {
            CachePolicyType = cacheImpType;
        }

        /// <summary>
        /// 缓存执行规则类型
        /// </summary>
        public Type CachePolicyType { get; set; }

    }


}
